package com.niguang.labour.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
@TableName("v_personSite")
@Data
public class VPersonSite extends Model<VPersonSite> {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 主键
     */
	private Long siteUserId;
    /**
     * 用户ID
     */
	private Long userId;
    /**
     * 用户姓名
     */
	private String userName;
	private Long qiyeId;
    /**
     * 企业名称
     */
	private String qiyeName;
    /**
     * 工地ID
     */
	private Long siteId;
    /**
     * 工地名称
     */
	private String siteName;
    /**
     * 是否是管理员 1--普通用户 2--工地管理员
     */
	private Integer manageType;
	private String manageTypeName;
	private String siteCityName;


	public static final String SITEUSERID = "siteUserId";

	public static final String USERID = "userId";

	public static final String USERNAME = "userName";

	public static final String QIYEID = "qiyeId";

	public static final String QIYENAME = "qiyeName";

	public static final String SITEID = "siteId";

	public static final String SITENAME = "siteName";

	public static final String MANAGETYPE = "manageType";

	public static final String MANAGETYPENAME = "manageTypeName";

	public static final String SITECITYNAME = "siteCityName";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VPersonSite{" +
			"siteUserId=" + siteUserId +
			", userId=" + userId +
			", userName=" + userName +
			", qiyeId=" + qiyeId +
			", qiyeName=" + qiyeName +
			", siteId=" + siteId +
			", siteName=" + siteName +
			", manageType=" + manageType +
			", manageTypeName=" + manageTypeName +
			", siteCityName=" + siteCityName +
			"}";
	}
}
